package com.dwin.h5.app.models;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * 新风机json指令工具
 */
public class BaseJsonTool {
    public static final String type_CMD = "__command_type"; // json中传递读写类型的key
    public static final String typeR = "READ";
    public static final String typeW = "WRITE";



    public static JSONObject buildCommandObj() {
        JSONObject jsonCommand = new JSONObject();
        try {
            jsonCommand.put("room_temperature", 0);
        } catch (JSONException e) {
            e.printStackTrace();
        }
        return jsonCommand;
    }

}
